import React from 'react';
import { Typography } from 'antd';

const { Paragraph } = Typography;

const CopyText = ({ text }) => (
    <div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center' }}>
        {text}
        <Paragraph
            copyable={{ text }}
            onClick={e => {
                e.stopPropagation();
            }}
            style={{ marginBottom: 0 }}
        ></Paragraph>
    </div>
);
export default CopyText;
